/*
============================================================================
 Name        : pd_font.h
 Author      : Jian(raphyer@hotmail.com)
 Version     :
 Copyright   : GPL
 Description : pd_font.h - header file
============================================================================
*/

#ifndef PD_FONT_H
#define PD_FONT_H

#include "dd_define.h"

__DD_BEGIN_DECLS

typedef struct __pd_font { 
    char dummy;
} pd_font;

typedef enum __pd_font_size{
    PD_SMALL_FONT   = 0, 
    PD_MEDIUM_FONT,
    PD_LARGE_FONT 
} pd_font_size;

typedef enum __pd_font_type{
    PD_FONT_NORMAL   = 0, 
    PD_FONT_BOLD,
    PD_FONT_ITALIC 
} pd_font_type;

pd_font* pd_font_create(pd_font_size size, pd_font_type type) ;

void pd_font_destroy(pd_font* font) ;

DD_UINT pd_font_max_height(pd_font* font) ;

DD_UINT pd_font_text_width(pd_font* font, const DD_UNICODE* text) ;

DD_UINT pd_font_char_width(pd_font* font, DD_UNICODE chr) ;

DD_UINT pd_font_count_char(pd_font* font, DD_INT width, const DD_UNICODE* text) ;


__DD_END_DECLS

#endif  /* PD_FONT_H */

// End of File
